package com.dkd.manage.pojo.entity;

import com.dkd.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 售货机货道对象 tb_channel
 *
 * @author itgn
 * @date 2025-05-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Channel {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;

    /**
     * 货道编号
     */
    @Excel(name = "货道编号")
    private String channelCode;

    /**
     * 商品Id
     */
    @Excel(name = "商品Id")
    private Long skuId;

    /**
     * 售货机Id
     */
    @Excel(name = "售货机Id")
    private Long vmId;

    /**
     * 售货机软编号
     */
    @Excel(name = "售货机软编号")
    private String innerCode;

    /**
     * 货道最大容量
     */
    @Excel(name = "货道最大容量")
    private Long maxCapacity;

    /**
     * 货道当前容量
     */
    @Excel(name = "货道当前容量")
    private Long currentCapacity;

    /**
     * 上次补货时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime lastSupplyTime;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}